/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package towerdefense.data;

import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
import javax.swing.JOptionPane;

/**
 *
 * @author Flo
 */
public class BuildTile extends Tile {
    private Tower tower;
    
    public BuildTile() throws Exception
    {
            super("BuildTile", ImageIO.read(new File("img/Gras.png")));
    }

    public Tower getTower() {
        return tower;
    }

    public void setTower(Tower tower) {
        this.tower = tower;
    }
    
    public boolean isBuildable()
    {
        if(tower == null)
        {
            return true;
        }
        return false;
    }

    private void loadresources() {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
